﻿$(function () {
    //修改密码表单验证
    $("#pwdForm").validate({
        rules: {
            oldPwd: {
                required: true,
                minlength: 6,
                maxlength: 20
            },
            newPwd: {
                required: true,
                minlength: 6,
                maxlength: 20
            },
            txtRePassword: {
                required: true,
                minlength: 6,
                maxlength: 20,
                equalTo: "#newPwd"
            }
        },
        submitHandler: function (form) {
            form.submit();
        }
    });
});